package com.example.demo.api;

import java.util.ArrayList;

import com.example.demo.service.BlogService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("")
public class Blog {

  @Autowired
  private BlogService blogService;

  @GetMapping("list")
  public ArrayList getBlogList(){
    return blogService.getBlogList();
  }
  
}